#pragma once

#include "../IFilter.h"
#include "../../ImageCores/xImage.h"

// CMinus command target

class CDifference : public IImageFilter
{
public:
	CDifference(BOOL resultInMinuend = TRUE);
	virtual ~CDifference();

	virtual BOOL Apply(CxImage& minuend, CxImage& subtrahend);
	virtual BOOL Apply(CxImage& minuend, CxImage& subtrahend, CxImage& result);

protected:
	BOOL m_resultInMinuend;
};